# -*- coding: utf-8 -*-
# @Date   : 2020/3/27
# @File   : InvestInPerNum.py
# @Author : zhaochen

'''eof
name:目标公司自然人投资者数量
code:InvestInPerNum
tableName:
columnName:
groups:关联方
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

import sys

reload(sys)
sys.setdefaultencoding('utf-8')


def float_check(num):
    try:
        float(num)
        return True
    except:
        return False


def InvestInPerNum():
    try:
        InvestInPerNum = EG_BBD["InvestInPerNum"]
        if float_check(InvestInPerNum):
            return InvestInPerNum
        elif InvestInPerNum == '':
            return 0
        else:
            return u'缺失值'
    except:
        return u'缺失值'


result = InvestInPerNum()
